home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 October / EnigmA AMIGA RUN 01 (1995)(G.R. Edizioni)(IT)[!][issue 1995-10][Aminet 7].iso / Aminet / comm / misc / avmNfax1_33.lha / avmsuite / avm-install < prev    next >
Text File  |  1994-06-24  |  7KB  |  313 lines

  1. (welcome "AVM Suite Installation")
  2. (transcript "Installing the AVM Suite...")
  3.  
  4. ; **************************************************************************
  5. ; **************************************************************************
  6. ; **************************************************************************
  7.  
  8. (complete 20)
  9.  
  10. (set @default-dest "Work:AVMSuite")
  11.  
  12. (set avmdest
  13.    (askdir
  14.       (prompt "Where do you want to put the AVM Suite?")
  15.       (help @askdir-help)
  16.       (default @default-dest)
  17.       (newpath)
  18.    )
  19. )
  20.  
  21. (set @default-dest avmdest)
  22.  
  23. (makedir avmdest (infos))
  24.  
  25. (makeassign "AVM" avmdest)
  26.  
  27. (set previousinstallation (exists "avm:mailbox.cfg"))
  28.  
  29. (execute "copyoldfilenames"
  30.  (prompt "Copying old filenames.cfg to oldfilenames.cfg")
  31. )
  32.  
  33. (if (> previousinstallation 0)
  34.   (set useoldicons
  35.     (askbool
  36.       (prompt "Do you want to save your current icons?")
  37.       (help "Say yes if you want to.")
  38.       (default 1)
  39.     )
  40.   )
  41.   (set useoldicons 0)
  42. )
  43.  
  44. (if (= useoldicons 1)
  45.   (execute "backupoldicons"
  46.     (prompt "Backing up old icons")
  47.   )
  48. )
  49.  
  50. (if (> previousinstallation 0)
  51.   (set bool
  52.     (askbool
  53.       (prompt "Do you want me to backup stuff in avm:rexx?")
  54.      (help "If you've modified them and want to keep them, say yes.")
  55.       (default 1)
  56.     )
  57.   )
  58.   (set bool 0)
  59. )
  60.  
  61. (if (= bool 1)
  62.   (execute "backupavmrexx"
  63.     (prompt "Backing up avm:rexx into avm:old/rexx")
  64.   )
  65. )
  66.  
  67. (if (> previousinstallation 0)
  68.   (set bool
  69.     (askbool
  70.       (prompt "Do you want me to backup stuff in avm:source?")
  71.       (help "If you've modified them and want to keep them, say yes.")
  72.       (default 1)
  73.     )
  74.   )
  75.   (set bool 0)
  76. )
  77.  
  78. (if (= bool 1)
  79.   (execute "backupavmsource"
  80.     (prompt "Backing up avm:rexx into avm:old/source")
  81.   )
  82. )
  83.  
  84. (copyfiles
  85.    (prompt "Copying executables, scripts, icons, and documentation...")
  86.    (help @copyfiles-help)
  87.         (source (expandpath ""))
  88.    (dest avmdest)
  89.    (pattern "~(mailbox.cfg|mailbox1|mailbox2|anonymous)")
  90. )
  91.  
  92. (if (> previousinstallation 0)
  93.   (set bool
  94.     (askbool
  95.       (prompt "Should I overwrite your mailbox.cfgs?")
  96.       (help "If you've never used AVM, say yes.")
  97.       (default 0)
  98.     )
  99.   )
  100.   (set bool 1)
  101. )
  102.  
  103. (if (= bool 1)
  104.   (copyfiles
  105.     (prompt "Copying mailbox.cfg")
  106.     (help @copyfiles-help)
  107.     (source (expandpath ""))
  108.     (dest avmdest)
  109.     (pattern "mailbox.cfg")
  110.   )
  111. )
  112.  
  113. (if (= bool 1)
  114.   (copyfiles
  115.     (prompt "Copying anonymous mailbox")
  116.     (help @copyfiles-help)
  117.     (source (expandpath ""))
  118.     (dest avmdest)
  119.     (pattern "anonymous")
  120.   )
  121. )
  122.  
  123. (if (= bool 1)
  124.   (copyfiles
  125.     (prompt "Copying mailbox1 mailbox")
  126.     (help @copyfiles-help)
  127.     (source (expandpath ""))
  128.     (dest avmdest)
  129.     (pattern "mailbox1")
  130.   )
  131. )
  132.  
  133. (if (= bool 1)
  134.   (copyfiles
  135.     (prompt "Copying mailbox2 mailbox")
  136.     (help @copyfiles-help)
  137.     (source (expandpath ""))
  138.     (dest avmdest)
  139.     (pattern "mailbox2")
  140.   )
  141. )
  142.  
  143. (makeassign "AVMREXX" "avm:rexx")
  144. (makeassign "AVMTEMP" "t:")
  145.  
  146. (delete "avm:installer")
  147. (delete "avm:avm-install")
  148. (delete "avm:avm-install.info")
  149.  
  150. (makedir "avm:voices")
  151.  
  152. (complete 75)
  153.  
  154. (set modemtype
  155.    (askchoice
  156.       (prompt "What modem and ROM version do you have?")
  157.       (help @askchoice-help)
  158.       (choices
  159.          "Use previous files"
  160.          "LineLink 144e"
  161.          "MTD Dolphin"
  162.          "ZyXEL 6.01"
  163.          "ZyXEL 6.10"
  164.          "ZyXEL 6.11"
  165.          "ZyXEL 6.11a"
  166.          "Rockwell based Voice modem"
  167.          "ZyXEL 6.12"
  168.          "Non-Voice Class 2 Fax modem"
  169.          "Non-Voice Class 1 Fax modem"
  170.       )
  171.       (default 0)
  172.    )
  173. )
  174.  
  175. (debug modemtype)
  176.  
  177. (if (> modemtype 0)
  178.   (execute "backupconfig"
  179.     (prompt "Backing up previous configuration")
  180.   )
  181. )
  182.  
  183. (if (= modemtype 0)
  184.   (execute "avm:defaultscripts/usePrevious")
  185.   (if (= modemtype 1)
  186.     (execute "avm:defaultscripts/useLineLink144e")
  187.     (if (= modemtype 2)
  188.       (execute "avm:defaultscripts/useDolphin")
  189.       (if (= modemtype 3)
  190.         (execute "avm:defaultscripts/useZyXEL6.01")
  191.         (if (= modemtype 4)
  192.           (execute "avm:defaultscripts/useZyXEL6.10")
  193.           (if (= modemtype 5)
  194.             (execute "avm:defaultscripts/useZyXEL6.11")
  195.             (if (= modemtype 6)
  196.               (execute "avm:defaultscripts/useZyXEL6.11a")
  197.               (if (= modemtype 7)
  198.                 (execute "avm:defaultscripts/useRockwell")
  199.                 (if (= modemtype 8)
  200.                   (execute "avm:defaultscripts/useZyXEL6.12")
  201.                   (if (= modemtype 9)
  202.                     (execute "avm:defaultscripts/useClass2")
  203.                     (if (= modemtype 10)
  204.                       (execute "avm:defaultscripts/useClass1")
  205.                     )
  206.                   )
  207.                 )
  208.               )
  209.             )
  210.           )
  211.         )
  212.       )
  213.     )
  214.   )
  215. )
  216.  
  217. (complete 80)
  218.  
  219. (set digitizertype
  220.    (askchoice
  221.       (prompt "What type of digitizer do you have?")
  222.       (help @askchoice-help)
  223.       (choices
  224.          "Generic/None"
  225.          "Perfect Sound"
  226.       )
  227.       (default 0)
  228.    )
  229. )
  230.  
  231. (debug digitizertype)
  232.  
  233. (if (= digitizertype 0)
  234.    (execute "avm:defaultscripts/useGenericDigitizer")
  235.    (if (= digitizertype 1)
  236.       (execute "avm:defaultscripts/usePerfectSound")
  237.       (message "Bad Stuff")
  238.    )
  239. )
  240.  
  241. (complete 85)
  242.  
  243. (set alerttype
  244.    (askchoice
  245.       (prompt "How do you want to be informed of new messages?")
  246.       (help @askchoice-help)
  247.       (choices
  248.          "Flashing LED"
  249.          "AmigaDOS Say Command"
  250.                         "Prerecorded Voice"
  251.       )
  252.       (default 0)
  253.    )
  254. )
  255.  
  256. (debug alerttype)
  257.  
  258. (if (= alerttype 0)
  259.    (execute "avm:defaultscripts/useFlashAlert")
  260.    (if (= alerttype 1)
  261.       (execute "avm:defaultscripts/useSayAlert")
  262.                 (if (= alerttype 2)
  263.                      (execute "avm:defaultscripts/useSayAlertPreRec")
  264.            (message "Bad Stuff")
  265.                 )
  266.    )
  267. )
  268.  
  269. (complete 90)
  270.  
  271.  
  272. ; **************************************************************************
  273. ; **************************************************************************
  274. ; **************************************************************************
  275.  
  276.  
  277. (startup "AVM Suite"
  278.   (prompt "Adding the required ASSIGNS to your user-startup.")
  279.    (help @startup-help)
  280.    (command "assign avm: \"" avmdest "\"\n")
  281.    (command "assign avmrexx: \"avm:rexx\"\n")
  282.    (command "assign avmtemp: \"t:\"\n")
  283.    (command "assign faxout: \"avm:outgoing/voices\"\n")
  284.    (command "assign faxtemp: \"t:\"\n")
  285. )
  286.  
  287. (execute "avm:renamevoicefiles"
  288.  (prompt "Renaming old voice files, if any.")
  289. )
  290.  
  291. (execute "avm:copyfaxprinter"
  292.  (prompt "Copying faxprinter to devs:printers")
  293. )
  294.  
  295. (if (= useoldicons 1)
  296.   (execute "avm:restoreoldicons"
  297.    (prompt "Restoring old icons")
  298.   )
  299. )
  300.  
  301. (run "newshell con:////AVM-Install from deletevfiles"
  302.  (prompt "Deleting old voice files that were incompatible with this version.")
  303. )
  304.  
  305. (complete 100)
  306.  
  307.  
  308. ; **************************************************************************
  309. ; **************************************************************************
  310. ; **************************************************************************
  311.  
  312. (exit)
  313.